Skip to main content

Sugar Color Sensor Module

The Sugar Color Sensor is a digital color sensor IC with an IC bus interface. This IC senses red, green, and blue light (RGB) and converts it into digital values. High sensitivity, a wide dynamic range, and excellent Ircu characteristics make this IC most suitable for obtaining the illuminance and color temperature of ambient light. It can detect a very wide range of light intensities.

Parameters

Size24 x 24 x 56 mm
Weight5.1 g
Signali2c
Detection DistanceApproximately 4mm

Guide for Use in Kittenblock

Note: Before selecting the hardware, ensure that the hardware mainboard is updated to the latest version (i.e., there is no small arrow for upgrade in the lower right corner).
image-20240730114344393

Program Package

链接:https://pan.baidu.com/s/1gWidPYNJTISkZZA1CTOjeQ?pwd=KBKB
提取码:KBKB

Future Board

Select the hardware Future Board and add the hardware sub-plugin Color Sensor.
image-20240730114427145

image-20240730114449499

image-20240730114523957

Brick Introduction

image-20240730114609963Update sensor values to ensure the consistency of the RGB data, ensuring they are obtained in the same sampling, so use this block to update.
image.pngSelect to return RGB color values through the drop-down box
image-20240730114640819Luminance value

Circuit Connection

  • Robotbit edu expansion board

image.png

  • Robotbit pin version

image.png

Case

danger

When detecting color, the sensor's distance from the target is best at about 4mm.

image-20240730115507677

Upload Program

Please ensure that you have written the program according to the instructions above, then click the code switch button in the upper left corner of the software, and click the upload button in the pop-up code box.

info

If you are not clear about the concepts of program upload and online running, first check the "Quick Start Guide for Future Board Programming."

image-20240730115544956

Future Board Lite

Add Extension

image-20240730115621328
image-20240730115700811

image-20240730115724492

Programming Bricks

image-20240730133925425Update sensor values to ensure the consistency of the RGB data, ensuring they are obtained in the same sampling, so use this block to update.
image-20240730133936987Select to return RGB color values through the drop-down box
image-20240730133948505Ambient brightness value

Circuit Connection

image.png

Case

image-20240730134334973

Upload Program

Please ensure that you have written the program according to the instructions above, then click the code switch button in the upper left corner of the software, and click the upload button in the pop-up code box.

info

If you are not clear about the concepts of program upload and online running, first check the "Quick Start Guide for Future Board Lite Programming."

image-20240730115544956